package transaction;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import static org.springframework.transaction.annotation.Propagation.REQUIRED;


/**
 * Created by zc on 2017/6/9.
 */
@Service
@Transactional(propagation = REQUIRED,isolation = Isolation.DEFAULT,readOnly = false)
/**
 propagation:事务传播行为 REQUIRED
 isolation：事务隔离级别
 readOnly:只读（不能增、删、改）
 rollbackFor:发生哪些异常回滚
 noRollbackFor:发生哪些异常不会滚
 */
public class AccountServiceImpl implements AccountService {
    @Override
    public void transfer() {

    }
}
